//
//  XLGProtocolRequestAddress.h
//  etionCBLogic
//
//  Created by wjxfhxy on 15-7-2.
//  Copyright (c) 2015年 GuangZhouXuanWu. All rights reserved.
//

#import <Foundation/Foundation.h>

@interface XLGProtocolRequestAddress : NSObject

@property(nonatomic,retain) NSString *ip;
@property(nonatomic,assign) NSUInteger port;
@property(nonatomic,retain) NSString *website;

@property(nonatomic,assign) BOOL longConnect;

-(id)initWithIP:(NSString*)ip port:(NSUInteger)port;

-(id)initWithWebsite:(NSString*)website;

-(id)initWithWebsite:(NSString*)website port:(NSUInteger)port;

+ (void)protocolRequestAddress:(XLGProtocolRequestAddress*(^)(NSString *URI))address;

+ (XLGProtocolRequestAddress*(^)(NSString *URI))protocolRequestAddress;

@end
